package com.example.demo.mapper;

import com.example.demo.model.Blog;
import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {
    List<Blog> getAllBlog();

    Blog getBlogByBid(Integer blogId);

    void createOneBlog(Blog blog);

    void deleteByBId(String blogId);

    void updateBlog(Blog blog);

    List<Blog> getAllBlogById(Integer userId);
}
